package org.hw.proxy.statics;

import org.hw.proxy.Animal;

public class StaticProxy implements Animal {

    private Animal animal;
    public StaticProxy(Animal animal){
        this.animal=animal;
    }
    @Override
    public void eating(String food) {
        System.out.println("这是静态代理类");
        animal.eating(food);
    }

    @Override
    public void sleep(String status){};
}
